home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / u_man / cat3 / Tk / getanchor.z / getanchor
Encoding:
Text File  |  1998-10-30  |  4.8 KB  |  133 lines

  1.  
  2.  
  3.  
  4. TTTTkkkk____GGGGeeeettttAAAAnnnncccchhhhoooorrrr((((3333TTTTkkkk))))                                            TTTTkkkk____GGGGeeeettttAAAAnnnncccchhhhoooorrrr((((3333TTTTkkkk))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      Tk_GetAnchor, Tk_NameOfAnchor - translate between strings and anchor
  10.      positions
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      ####iiiinnnncccclllluuuuddddeeee <<<<ttttkkkk....hhhh>>>>
  14.  
  15.      int
  16.      TTTTkkkk____GGGGeeeettttAAAAnnnncccchhhhoooorrrr((((_i_n_t_e_r_p, _s_t_r_i_n_g, _a_n_c_h_o_r_P_t_r))))
  17.  
  18.      char *
  19.      TTTTkkkk____NNNNaaaammmmeeeeOOOOffffAAAAnnnncccchhhhoooorrrr((((_a_n_c_h_o_r))))
  20.  
  21. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  22.      Tcl_Interp  *_i_n_t_e_r_p      (in)      Interpreter to use for error
  23.                                         reporting.
  24.  
  25.      char        *_s_t_r_i_n_g      (in)      String containing name of anchor
  26.                                         point: one of ``n'', ``ne'', ``e'',
  27.                                         ``se'', ``s'', ``sw'', ``w'', ``nw'',
  28.                                         or ``center''.
  29.  
  30.      int         *_a_n_c_h_o_r_P_t_r   (out)     Pointer to location in which to store
  31.                                         anchor position corresponding to
  32.                                         _s_t_r_i_n_g.
  33.  
  34.      Tk_Anchor   _a_n_c_h_o_r       (in)      Anchor position, e.g.
  35.                                         TTTTCCCCLLLL____AAAANNNNCCCCHHHHOOOORRRR____CCCCEEEENNNNTTTTEEEERRRR.
  36.  
  37.  
  38. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  39.      TTTTkkkk____GGGGeeeettttAAAAnnnncccchhhhoooorrrr places in *_a_n_c_h_o_r_P_t_r an anchor position (enumerated type
  40.      TTTTkkkk____AAAAnnnncccchhhhoooorrrr) corresponding to _s_t_r_i_n_g,  which will be one of TTTTKKKK____AAAANNNNCCCCHHHHOOOORRRR____NNNN,
  41.      TTTTKKKK____AAAANNNNCCCCHHHHOOOORRRR____NNNNEEEE, TTTTKKKK____AAAANNNNCCCCHHHHOOOORRRR____EEEE, TTTTKKKK____AAAANNNNCCCCHHHHOOOORRRR____SSSSEEEE, TTTTKKKK____AAAANNNNCCCCHHHHOOOORRRR____SSSS, TTTTKKKK____AAAANNNNCCCCHHHHOOOORRRR____SSSSWWWW,
  42.      TTTTKKKK____AAAANNNNCCCCHHHHOOOORRRR____WWWW, TTTTKKKK____AAAANNNNCCCCHHHHOOOORRRR____NNNNWWWW, or TTTTKKKK____AAAANNNNCCCCHHHHOOOORRRR____CCCCEEEENNNNTTTTEEEERRRR.  Anchor positions are
  43.      typically used for indicating a point on an object that will be used to
  44.      position that object, e.g. TTTTKKKK____AAAANNNNCCCCHHHHOOOORRRR____NNNN means position the top center
  45.      point of the object at a particular place.
  46.  
  47.      Under normal circumstances the return value is TTTTCCCCLLLL____OOOOKKKK and _i_n_t_e_r_p is
  48.      unused.  If _s_t_r_i_n_g doesn't contain a valid anchor position or an
  49.      abbreviation of one of these names, then an error message is stored in
  50.      _i_n_t_e_r_p->_r_e_s_u_l_t, TTTTCCCCLLLL____EEEERRRRRRRROOOORRRR is returned, and *_a_n_c_h_o_r_P_t_r is unmodified.
  51.  
  52.      TTTTkkkk____NNNNaaaammmmeeeeOOOOffffAAAAnnnncccchhhhoooorrrr is the logical inverse of TTTTkkkk____GGGGeeeettttAAAAnnnncccchhhhoooorrrr.  Given an anchor
  53.      position such as TTTTKKKK____AAAANNNNCCCCHHHHOOOORRRR____NNNN it returns a statically-allocated string
  54.      corresponding to _a_n_c_h_o_r.  If _a_n_c_h_o_r isn't a legal anchor value, then
  55.      ``unknown anchor position'' is returned.
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. TTTTkkkk____GGGGeeeettttAAAAnnnncccchhhhoooorrrr((((3333TTTTkkkk))))                                            TTTTkkkk____GGGGeeeettttAAAAnnnncccchhhhoooorrrr((((3333TTTTkkkk))))
  71.  
  72.  
  73.  
  74. KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
  75.      anchor position
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.